package routers

import (
	"github.com/gin-gonic/gin"
	"server/controller"
)

func InitRouter() *gin.Engine {
	r := gin.New()

	api := r.Group("/api")
	{
		api.GET("/data", controller.Data)
		api.GET("/geom", controller.Geom)
	}
	return r
}
